
<%@page import="java.util.UUID"%><%@page pageEncoding="UTF-8"%>
<%@page import="org.jamwiki.servlets.ServletUtil"%>
<%@page import="org.jamwiki.model.WikiUser"%>
<%@page import="org.jamwiki.model.TopicVersion"%>
<%@page import="org.jamwiki.model.Topic"%>
<%@page import="org.jamwiki.WikiBase"%>
<%
	WikiUser user = new WikiUser("admin");
	user.setLastLoginIpAddress("127.0.0.1");
	
	StringBuilder builder = new StringBuilder();
	for(int i=0;i<300000;i++){
		builder.append("中");
	}
	String text = builder.toString();
	
	for(int i=0;i<1;i++){
		Topic topic = new Topic("home", "topic" + UUID.randomUUID().toString());		
		topic.setTopicContent(text);
		TopicVersion topicVersion = new TopicVersion(user, user.getLastLoginIpAddress(), "Automatically created by system setup", text, 100);
		System.out.print(topic.getName());
		WikiBase.getDataHandler().writeTopic(topic,topicVersion,null,null);
	}
%>